<template>
	<view>
		<view class="">
			<view class="top">
				<image :src="IMGBASEURL+url" mode=""></image>
			</view>
			<view class="name">
				<image :src="IMGBASEURL+list.logo" mode=""></image>
				<view>
					
						<text>{{list.name}}</text>
						<text>{{list.services}}</text>

				</view>
			</view>
			<view class="xinxi">
				<view>
					<text class="iconfont icon-shijian" style="color: #fe7100;"></text>
					<text>营业时间：{{list.startTime}}-{{list.endTime}}</text>
				</view>
				<view>
					<text class="iconfont icon-dizhi" style="color: #fe7100;"></text>
					<text>商家地址：{{list.address}}</text>
				</view>
			</view>
			<view class="introduce">
				<text style="font-size: 35rpx;">商家介绍</text>
				<view>
					<image :src="IMGBASEURL+url" mode=""></image>
				</view>
				<view>
					<text>{{list.intro}}</text>
				</view>
			</view>
			<view class="tel">
				<text class="iconfont icon-dianhua" style="font-size: 80rpx; color: #fe7100;"></text>
				<text>联系电话：{{list.tel}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	import request from '../../utils/request.js'
	import {storeslist} from '../../api/storesdetails.js'
	import {IMGBASEURL} from '../../utils/config.js'
	
	export default{
		data(){
			return{
				storeslist:[],
				list:[],
				IMGBASEURL: IMGBASEURL,
				url:''
			}
		},
		onLoad(e) {
			console.log('e',e)
			this.getstoreslist(e);
		},
		methods:{
			async getstoreslist(e){
				let data = await storeslist({id:e.id});
					console.log(data)
					data.data.images.map(item=>{
							this.url=item.url
					})
					if(data.errCode=='10000'){
						this.list = data.data
						
					}
			}
		}
	}
</script>

<style>
	@import '../../static/style/Storesdetails.less';
</style>